export interface ButtonProps {
  /**
   * Display button text
   * @type string
   */
  text?: string;

  /**
   * Display column method name
   * @type string
   */
  handleName?: string;

  /**
   * Handle the button clicks event
   * @type (record: any) => any
   */
  handler?: string | ((record: any) => any);

  /**
   * Handle the button clicks event
   * @type (e: HTMLDivElement) => any
   */
  disabled?: (e: HTMLDivElement) => any;

  /**
   * Whether the button is displayed
   * @type () => boolean | function(): boolean
   */
  show?: (record: any) => boolean | (() => boolean);

  /**
   * Display two styles of buttons:  'primary' | 'dashed' | 'danger' | 'link' | 'default'
   * @default 'primary'
   * @type string
   */
  type?: string;

  /**
   * custom style
   * @default ''
   * @type string
   */
  style?: string;
  /**
   * use popconfirm
   */
  confirm?: boolean;
  /**
   * confirm ask text
   */
  confirmText?: string;
  /**
   * use record data for button text
   */
  recordButton?: boolean;
}
